<template>
	<view class="manageUser">
		<user-list :data="userList" @refresh="getUserList"></user-list>
	</view>
</template>

<script>
	import {
		myRequest
	} from "@/util/api.js"
	import userList from "@/pages/components/userList/userList"
	export default {
		data() {
			return {
				userList: []
			};
		},
		components: {
			userList
		},
		methods: {
			async getUserList() {
				const res = await myRequest({
					url: "/api/getUserinfo"
				})
				this.userList = res.data.message;
			}
		},
		onLoad() {
			this.getUserList();
		},
		onShow() {
			this.getUserList();
		}
	}
</script>

<style lang="scss" scoped>
.manageUser {
	
}
</style>